home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 19 code / SimpliFace_V2 / Sources / Application.r < prev    next >
Encoding:
Text File  |  1994-04-15  |  1.3 KB  |  77 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Application.r
  3.  
  4.     Contains:    Resources used by the TApplication class
  5.  
  6.  
  7.     Developed by:
  8.  
  9.     Paul G Smith (commstalk hq & Full Moon Software, Inc)
  10.  
  11.     you can leave messages at (UK): 0727 844232; (US): 408 253 7199
  12.     BUT I prefer to be contacted by e-mail
  13.     AppleLink:     COMMSTALK.HQ
  14.     Internet:     COMMSTALK.HQ@applelink.apple.com
  15.  
  16.     "SimpliFace2" Sample code to accompany develop article
  17.     on techniques for controlling script inheritance.
  18.     
  19.     
  20.  
  21.  
  22. */
  23.  
  24. #include "SysTypes.r"
  25. #include "Types.r"
  26.  
  27. #include "ApplicationCommon.h"
  28.  
  29. resource 'STR#' (kApplicationErrStrings, purgeable) {
  30.     {
  31.     "You must run on 512Ke or later";
  32.     "Application Memory Size is too small";
  33.     "AppleScript 1.1 is required"
  34.     }
  35. };
  36.  
  37.  
  38. /* this ALRT and DITL are used as an error screen */
  39. resource 'ALRT' (rUserAlert, purgeable) {
  40.     {40, 20, 180, 330},
  41.     rUserAlert,
  42.     { /* array: 4 elements */
  43.         /* [1] */
  44.         OK, visible, silent,
  45.         /* [2] */
  46.         OK, visible, silent,
  47.         /* [3] */
  48.         OK, visible, silent,
  49.         /* [4] */
  50.         OK, visible, silent
  51.     }
  52. };
  53.  
  54. resource 'DITL' (rUserAlert, purgeable) {
  55.     { /* array DITLarray: 3 elements */
  56.         /* [1] */
  57.         {110, 220, 130, 300},
  58.         Button {
  59.             enabled,
  60.             "OK"
  61.         },
  62.         /* [2] */
  63.         {10, 60, 90, 300},
  64.         StaticText {
  65.             disabled,
  66.             "Error. ^0."
  67.         },
  68.         /* [3] */
  69.         {8, 8, 40, 40},
  70.         Icon {
  71.             disabled,
  72.             2
  73.         }
  74.     }
  75. };
  76.  
  77.